import request from "@/utils/request.ts";

// 分页查询
export function findContentPage(params: any) {
    return request({
        url: '/api/content/page',
        method: "GET",
        params
    })
}

// 添加和修改接口
export function addContent(data: any) {
    return request({
        url: '/api/content/addContent',
        method: "POST",
        data
    })
}

// 删除接口
export function delContent(id: number) {
    return request({
        url: `/api/content/del/${id}`,
        method: "DELETE",
    })
}

